package biz.impl;

import java.util.List;

import dao.ReplyDao;
import dao.impl.ReplyDaoImpl;
import entity.Reply;
import biz.ReplyBiz;

public class ReplyBizImpl implements ReplyBiz {
	private ReplyDao replyDao=new ReplyDaoImpl();

	public Reply findReply(int id) {
		return replyDao.findReply(id);
	}
	public int addReply(Reply reply) {
		return replyDao.addReply(reply);
	}
	public int deleteReply(int id) {
		return replyDao.deleteReply(id);
	}

	public int updateReply(Reply reply) throws Exception {
		return replyDao.updateReply(reply);
	}
	public List findListReply(int page, int id) {
		return replyDao.findListReply(page, id);
	}
	public int findCountTopic(int id) {
		return replyDao.findCountReply(id);
	}
}
